package com.ruoyi.common.core.Entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("结果对象")
public class Result {
    @ApiModelProperty("HTTP状态码")
    private int code; //HTTP状态码
    @ApiModelProperty("信息常量")
    private String message; //返回给前端的信息
    @ApiModelProperty("返回的对象")
    private Object object; //返回的对象

    public Result(int code, String message){
        this.code = code;
        this.message = message;
    }

}
